package com.merak.miner.data.persist.mapper;

import com.merak.miner.data.persist.entity.Esmp;
import com.merak.miner.data.persist.entity.EsmpDataCondition;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

/**
 * @description esmp
 * @author cãomao
 * @date 2021-11-16
 */
@Mapper
public interface EsmpMapper {

    /**
     * 新增
     * @author cãomao
     * @date 2021/11/16
     **/
    int insert(Esmp esmp);

    /**
     * 刪除
     * @author cãomao
     * @date 2021/11/16
     **/
    int delete(int id);

    /**
     * 更新
     * @author cãomao
     * @date 2021/11/16
     **/
    int update(Esmp esmp);

    /**
     * 查询 根据主键 id 查询
     * @author cãomao
     * @date 2021/11/16
     **/
    Esmp load(int id);

    /**
     * 查询 分页查询
     * @author cãomao
     * @date 2021/11/16
     **/
    List<Esmp> pageList(int offset, int pagesize);

    /**
     * 查询 分页查询 count
     * @author cãomao
     * @date 2021/11/16
     **/
    int pageListCount(int offset,int pagesize);


    /**
     * 查询esmp的过滤
     */
    List<Esmp> selectEsmpPageListByCondition(EsmpDataCondition esmpDataCondition);

}